newUserWizard = Ext.extend(newUserWizardUi, {
    initComponent : function() {
        newUserWizard.superclass.initComponent.call(this);
        this.newUserForm = Ext.getCmp('newUserForm');
        globals.bindHandlers(this.id, this.getHandlers());
    }
    , getHandlers : function()
    {
        return {
          saveNewUser : {fn: this.saveNewUser, scope: this}
          ,closeNewUserWizard : {fn : function(){ this.close() }, scope : this }
        };
    }
    ,saveNewUser : function (button) {
        console.log(this);
        this.newUserForm.getForm().submit({
            url:'user/add',
            waitMsg: 'Adding new user...',
            success: this.saveSuccess,
            failure: globals.formSubmitFailed
        });
    }
    ,saveSuccess : function(form, action)
    {
        Ext.MessageBox.alert('Ok', action.result.message);
        sweatShop.log(action.result.message, 1);
        this.close();
    }
});
